package com.lnlyj.media;

import android.content.Context;

import com.bumptech.glide.Glide;

/**
 * wanglei 2020-04-20
 */
public class GlideUtil {

    public static void pauseRequests(Context context) {
        try {
            Glide.with(context).pauseRequests();//禁止Glide加载图片
        } catch (Exception e) {

        }
    }

    public static void resumeRequests(Context context) {
        try {
            Glide.with(context).resumeRequests();//禁止Glide加载图片
        } catch (Exception e) {

        }
    }
}
